package homeworke.question18;

/**
 * Author：毕龙
 * Date: 2024/4/18 19:40
 */
public class CreditAccount extends Account{
    private double creditLine;

    public CreditAccount(long id, String password) {
        super(id, password);
    }

    public CreditAccount() {
    }

    public double getCreditLine() {
        return creditLine;
    }

    public void setCreditLine(double creditLine) {
        this.creditLine = creditLine;
    }

    @Override
    public String toString() {
        return "CreditAccount{" +
                super.toString()+
                "creditLine=" + creditLine +
                '}';
    }
}
